//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package come.tool.handle;

import com.tool.imagemonitor.FightingMonitor;
import come.tool.Fighting.FightingMixDeal;
import org.come.Frame.ZhuFrame;
import org.come.bean.FightOperation;

public class HandlePlayer implements Handle {
	public HandlePlayer() {
	}

	@Override
    public void handle(long DieTime) {
		FightOperation operation;
		if ("取消".equals(ZhuFrame.getZhuJpanel().getZidong().getText())) {
			FightingMixDeal.CorrectTime += DieTime;
			if (FightingMixDeal.CorrectTime > 2000) {
				FightingMixDeal.CorrectTime = 0;
				operation = FightingMonitor.getOperation();
				FightingMonitor.execution(operation, true);
			}
		}

		if (FightingMixDeal.time > 60000) {//战斗时间倒计时
			if (FightingMixDeal.State == 1) {
				operation = FightingMonitor.getOperation();
				FightingMonitor.execution(operation, true);
			}

			if (FightingMixDeal.State == 2) {
				operation = FightingMonitor.getOperation();
				FightingMonitor.execution(operation, true);
			}
		}

	}
}
